      function lib_bwcheck(){ //Browsercheck (needed)
        this.ver=navigator.appVersion;
        this.agent=navigator.userAgent;
        this.nav=navigator.appName;
        this.dom=document.getElementById?1:0;
        this.opera5=(navigator.userAgent.indexOf("Opera")>-1 && document.getElementById)?1:0;
        this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; 
        this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
        this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
        this.ie=this.ie4||this.ie5||this.ie6;
        this.mac=this.agent.indexOf("Mac")>-1;
        this.ns7=(this.dom && parseInt(this.ver) >= 7) ?1:0; 
        this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
        this.ns4=(document.layers && !this.dom)?1:0;
        this.nn=(this.ver.indexOf("Netscape")>-1)?1:0;
        this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.ns7 || this.opera5);
        return this
      }

      var bw=lib_bwcheck()

      function ReadCookie(cookieName) {
        var theCookie=""+document.cookie;
        var ind=theCookie.indexOf(cookieName);
        if (ind==-1 || cookieName=="") return "";
        var ind1=theCookie.indexOf(';',ind);
        if (ind1==-1) ind1=theCookie.length; 
        return unescape(theCookie.substring(ind+cookieName.length+1,ind1));
      }

      function SetCookie(cookieName,cookieValue,nDays) {
        var today = new Date();
        var expire = new Date();
        if (nDays==null || nDays==0) nDays=1;
        expire.setTime(today.getTime() + 3600000*24*nDays);
        document.cookie = cookieName+"="+escape(cookieValue)+";expires="+expire.toGMTString();
      }

      function init(){

      }
      
      function initConnexion(){ 
        switch(document.getElementById("rc").value){
        case "":
          var os="Unknown";
          var ck = "0";
          var browser = "Unknown";
          if (navigator.appVersion.indexOf("Win")!=-1) os="Windows";
          if (navigator.appVersion.indexOf("Mac")!=-1) os="MacOS";
          if (navigator.appVersion.indexOf("X11")!=-1) os="UNIX";
          if (navigator.appVersion.indexOf("Linux")!=-1) os="Linux";
          testValue=Math.floor(1000*Math.random());
          SetCookie("AreCookiesEnabled",testValue);
          if (testValue==ReadCookie("AreCookiesEnabled")){js = "1";}
          browser = (bw.ie)?"ie":(bw.nn)?"nn":(bw.mac)?"mac":(bw.opera5)?"opera":"Unknown";
          document.getElementById("actionFrame").src = document.getElementById("srcAction").value+"&os=" + os + "&bw=" + browser + "&ck=" + ck + "&js=" + js;
          break;
        case "0":
          break;
        default:
          document.getElementById("textError").value = "Nous n'avons pas pu déterminer votre matériel.<br>Assurez-vous de bien utiliser le navigateur Internet Explorer version 5.5 et +.";
          break;
        }
      }

      function wclose(){
        if(parent){
          parent.close();
        }else{
          window.close();
        }
      }

